package cn.sendto.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.UserInfoModel;
import cn.sendto.rowmapper.IRowMapper;

public class UserInfoMapper implements IRowMapper<UserInfoModel>{

	@Override
	public UserInfoModel rowMapper(ResultSet rs) throws SQLException {
		UserInfoModel uim = new UserInfoModel();
		uim.setUserId(rs.getInt("userid"));
		uim.setUserName(rs.getString("username"));
		uim.setUserPass(rs.getString("userpass"));
		uim.setName(rs.getString("name"));
		uim.setType(rs.getInt("type"));
		uim.setUsertel(rs.getString("usertel"));
		return uim;
	}

}
